<template>
  <div>
    home
    <button @click="handleClick">添加数据</button>
  </div>
</template>

<script>
export default {
  methods: {
    handleClick() {
      this.$store.commit('set_list', { id: Date.now(), name: 'ipone_' + Date.now() })
    },
  },
}
</script>
